home *** CD-ROM | disk | FTP | other *** search
- *****Listing 1*****
-
- class Editor {
- public:
- void eval(); // parses the command stream
- void go(); // move point
- void print(); // print characters
- void insert(); // insert characters into buffer
- void del(); // delete characters from buffer
- void paste(); // paste last deletion after point
- void write(); // write buffer out to file
- void quit(); // quit the editor
- void info(); // display filename, point offset & file size
- private:
- Buffer b;
- File input;
- File output;
- };
-
-